<?php

/*
 * TODO:
 *  IN CONSTRUCTOR WE NEED TO FINISH THE CHECKING FOR THE
 *  RESERVATION REQUEST
 */

/**
 * Description of room_class
 *
 * @author cristian.daraban
 */
class RoomRequest {
    /*
     * @param: numberOfAdults - required
     * @param: numberOfChildren - required (if not 0)
     * @param: childAges - required (when # of children not 0)
     * The below elements are applicable to the Reservation Request ONLY. 
     * Do not send with any other requests.
     * @param: firstName - required
     * @param: lastName - required
     * @param: numberOfBeds - not required
     * @param: bedTypeId - required (for Merchant bookings)
     * @param: smokingPreference - not required
     * The below element is applicable to the Reservation RESPONSE ONLY. 
     * It is not applicable to any other request objects.
     * bedTypeDescription
     */
        private $numberOfAdults; 
        private $numberOfChildren;
        private $childAges;
        private $firstName;
        private $lastName;
        private $numberOfBeds;
        private $bedTypeId;
        private $smokingPreference;
        public function RoomRequest(
            $numberOfAdults, 
            $numberOfChildren,
            $childAges,
            $firstName,
            $lastName,
            $numberOfBeds,
            $bedTypeId,
            $smokingPreference) {
        if(isset($numberOfAdults) || $numberOfAdults != "" || $numberOfAdults != 0)
        {
            $this->numberOfAdults = $numberOfAdults;
        }
        if(isset($numberOfChildren) || $numberOfChildren != "" || $numberOfChildren != 0)
        {
            $this->numberOfChildren = $numberOfChildren;
        }
        if(isset($childAges) || count($numberOfChildren) != 0)
        {
            $this->childAges = $childAges;
        }
    }
    function GetNumberOfAdults()
    {
        return $this->numberOfAdults;
    }
    function GetNumberOfChildren()
    {
        return $this->numberOfChildren;
    }    
    function GetChildrenAges()
    {
        return $this->childAges;
    }
}

class RoomResponse{
    
    public function RoomResponse($resp) 
    {
        
    }
    
}

?>
